package com.wzq.permission.client.service;

import java.util.List;

import com.wzq.permission.client.model.Pager;
import com.wzq.permission.client.model.admin.ApplicationModel;

public interface ApplicationService {
	void add(ApplicationModel application);

	void update(ApplicationModel application);

	void updateBySelective(ApplicationModel application);

	void delete(Object id);

	int queryByCount(ApplicationModel application);

	List<ApplicationModel> queryList(ApplicationModel application,Pager pager);

	ApplicationModel queryById(Object id);
	
	//===========================华丽的分隔线============================================================================================
	/**
	 * 逻辑删除应用系统
	 * @param applicationIds 系统Id集合
	 * @return
	 */
	int logicDelete(Long[] applicationIds);
	
	Long getApplicationIdByKey(String applicationKey);
	
	int isExistApplication(String applicationKey);
}
